package com.nassir.chatroom.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;



public class Sleeper {

    
    private static Log log = LogFactory.getLog(Sleeper.class);
    
    /**
     * Sleep n seconds.
     * @param secs
     */
    public static void sleep(int secs) {
        try {
            Thread.sleep(1000 * secs);
        } catch (InterruptedException e) {
            log.error("", e);
        }
    }
    
    /**
     * Sleep n miils
     * @param miills
     */
    public static void sleepInMillis(int miills) {
        try {
            Thread.sleep(miills);
        } catch (InterruptedException e) {
            log.error("", e);
        }
    }
}
